<?php
namespace app\system\validate;
use think\Validate;

class Login extends Validate
{
    // 验证规则
    protected $rule = [
        ['username', 'require', '-11400'],
        ['password', 'require', '-11401'],
        ['domain', 'require', '-11402'],
        ['token', 'require', '-13001'],
    ];

    protected $scene = [
        'login_out' => ['token'],
        'login' => ['username','password','domain'],
    ];
}